package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 分页查询铭感词
     * @param dto
     * @return
     */
    ResponseResult findPage(WmSensitiveDto dto);

    /**
     * 保存铭感词
     * @param wmSensitive
     * @return
     */
    ResponseResult add(WmSensitive wmSensitive);

    /**
     * 更新敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult modify(WmSensitive wmSensitive);

    /**
     * 根据id，删除敏感词
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);
}
